/********************************************************
    Copyright (C), 2020-2099,SZ-STREAMING Tech. Co., Ltd.
    File name: V2xMessageDecode.h
    Author: xuzhibin 
    Date: 2020-06-12
    Description: V2X消息帧解码
********************************************************/
#ifndef __V2XMESSAGEDECODE_H__
#define __V2XMESSAGEDECODE_H__

#include <stdio.h>
#include <sys/types.h>
#include "V2xLog.h"
#include "MessageFrame.h"

MessageFrame_t* RM_SDK_V2X_MsgFrameDecode(const void *buffer, uint32_t size);
BSM_t* RM_SDK_V2X_BsmDecode(const void *buffer, uint32_t size);
MAP_t* RM_SDK_V2X_MapDecode(const void *buffer, uint32_t size);
RSM_t* RM_SDK_V2X_RsmDecode(const void *buffer, uint32_t size);
SPAT_t* RM_SDK_V2X_SpatDecode(const void *buffer, uint32_t size);
RSI_t* RM_SDK_V2X_RsiDecode(const void *buffer, uint32_t size);
int RM_SDK_V2X_DecodeBufFree(MessageFrame_PR msgType, void* buffer);

#endif
